import { $axios } from '@/utils/http';

// 获取禁言表
export async function allList(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/banned/allList',
    method: 'GET',
    params,
  });
}

// 查找框by userid
export async function selectByUseId(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/banned/selectByUseId',
    method: 'GET',
    params,
  });
}

// 新增禁言
export async function addBan(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/banned/addBan',
    method: 'GET',
    params,
  });
}
